﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartyEduCoursewareEdit.aspx.cs" Inherits="SysManage.Module.Edu.PartyEduCoursewareEdit" %>
<%--<%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload" %>--%>
<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1"  runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="Form2" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                       <%-- <f:ContentPanel runat="server">
                            <asp:Button runat="server" ID="dfsd" Text="sdf"  />
                        </f:ContentPanel>--%>
                    </Items>
                    
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:TabStrip ID="TabStrip1" ShowBorder="false" TabPosition="Top" AutoScroll="false"
                    EnableTabCloseMenu="false" ActiveTabIndex="0" Margin="0 auto" BodyPadding="2px"
                    runat="server">
                    <Tabs>
                        <f:Tab Title="基础信息" BodyPadding="5px" Layout="VBox"
                            runat="server">
                            <Items>
                                <f:Form BodyPadding="10px" ID="Form2"
                                    runat="server" Title="" ShowBorder="false" ShowHeader="false">
                                    <Rows>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtTitle" runat="server" LabelAlign="right" Label="名称" Required="true" ShowRedStar="true">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:DropDownList ID="ddlCategory" AutoSelectFirstItem="false"
                                                    EmptyText="==请选择==" LabelAlign="right" runat="server"
                                                    Label="课件类别" Required="true" ShowRedStar="true" RequiredMessage="请选择课件类别">
                                                </f:DropDownList>
                                                <f:DropDownList ID="ddlCourseType" AutoSelectFirstItem="false"
                                                    EmptyText="==请选择==" LabelAlign="right" runat="server"
                                                    Label="课件格式" Required="true" ShowRedStar="true" RequiredMessage="请选择课件格式">
                                                </f:DropDownList>
                                            </Items>

                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtTargetObject" runat="server" LabelAlign="right" Label="学习对象">
                                                </f:TextBox>
                                                <f:TextBox ID="txtDuration" runat="server" LabelAlign="right" Label="时长">
                                                </f:TextBox>
                                            </Items>

                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:FileUpload runat="server" LabelAlign="right" EmptyText="请选择一个附件"
                                                    ID="fileUp" ShowRedStar="false"
                                                    Label="上传附件"
                                                    ButtonText="附件" Required="false" ButtonIcon="ImageAdd"
                                                    AutoPostBack="true" OnFileSelected="fileUp_FileSelected" AcceptFileTypes="ppt/*">
                                                </f:FileUpload>

                                            </Items>

                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:HyperLink runat="server" Target="_blank"
                                                    CssStyle="cursor:pointer" Enabled="false"
                                                    ID="hlink" ShowEmptyLabel="true" LabelAlign="right" Text="下载附件">
                                                </f:HyperLink>
                                            </Items>

                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:RadioButtonList ID="rblFlags" LabelAlign="right" runat="server" Label="置顶格式" Width="230px">
                                                </f:RadioButtonList>

                                            </Items>

                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:CheckBox ID="cbxEnabled" runat="server" Label="是否发布" LabelAlign="right">
                                                </f:CheckBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:HtmlEditor ID="txtSummary" runat="server" Label="大纲" LabelAlign="right" Height="150px"></f:HtmlEditor>
                                            </Items>
                                        </f:FormRow>

                                    </Rows>
                                </f:Form>
                            </Items>
                        </f:Tab>
                        <f:Tab Title="介绍图片" BodyPadding="5px"  BoxFlex="1"  AutoScroll="true"
                            runat="server">
                            <Items>
                                <f:Panel ID="Panel2" ShowBorder="false" ShowHeader="false"  AutoScroll="true" runat="server" BoxFlex="1"  >
                                    <Items>
                                        <f:Grid ID="Grid1" runat="server" BoxFlex="1"  ShowBorder="true" ShowHeader="false"
                                            EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="false" AutoScroll="true"
                                            SortField="CreateTime" AllowPaging="true" ShowPagingMessage="false"  Height="350px"
                                            IsDatabasePaging="true" OnRowCommand="Grid1_RowCommand" OnPreRowDataBound="Grid1_PreRowDataBound">
                                            <Toolbars>
                                                <f:Toolbar ID="Toolbar5" runat="server">
                                                    <Items>

                                                        <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                                        </f:ToolbarFill>
                                                        <f:FileUpload runat="server" ID="filePhoto"
                                                            ButtonText="增加图片" ButtonOnly="true" Required="false" ButtonIcon="ImageAdd"
                                                            AutoPostBack="true" OnFileSelected="filePhoto_FileSelected">
                                                        </f:FileUpload>
                                                    </Items>
                                                </f:Toolbar>
                                            </Toolbars>
                                            <Columns>
                                                <f:BoundField DataField="Title" ExpandUnusedSpace="true" HeaderText="图片" />

                                                <f:LinkButtonField EnablePostBack="false" Width="80px" ColumnID="btnImagePreview" TextAlign="Center" HeaderText="预览" Text="预览" />
                                                 <f:LinkButtonField ColumnID="CoverField" TextAlign="Center" HeaderText="封面" Text="设为封面" ToolTip="封面" 
                                                    ConfirmTarget="Top" CommandName="Cover" Width="100px" />
                                                <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" HeaderText="删除" Icon="Delete" ToolTip="删除" ConfirmText="确定删除此记录？"
                                                    ConfirmTarget="Top" CommandName="Delete" Width="50px" />
                                            </Columns>
                                        </f:Grid>
                                    </Items>
                                </f:Panel>
                            </Items>
                        </f:Tab>
                        
                    </Tabs>
                </f:TabStrip>

            </Items>
        </f:Panel>
        <f:HiddenField Text="" ID="hdFileId" runat="server"></f:HiddenField>
        <f:HiddenField Text="" ID="hdCoursewareID" runat="server"></f:HiddenField>
        <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
            Width="650px" Height="450px">
        </f:Window>
<%--        <div>

            <Upload:InputFile ID="AttachFile" runat="server" />

            <asp:Button ID="Upload" runat="server" Text="Upload"
                OnClientClick="ToggleVisibility('ProgressBar','on')" OnClick="Upload_Click" />

            <div id="ProgressBar">

                <Upload:ProgressBar ID="pbProgressBar" runat='server' Inline="true" Width="280px"
                    Height="50px">
                </Upload:ProgressBar>

            </div>

        </div>--%>
    </form>
</body>
</html>
